#include<iostream>
#include <memory>
#include<vector>
#include<string>
using namespace std;


int main(int argc, char *argv[])
{
    if(argc < 2) return 0;
    freopen(argv[1], "r", stdin);
    string buf;
    int totalTime = 0;
    int cnt = 0;
    while(getline(cin, buf)) {
        int s, ms;
        int readNum = sscanf(buf.data(), "%*[^:]:%d.%d%*s",&s, &ms);
        // cout << readNum << endl;
        if(readNum != 2) {
            continue;
        }
        totalTime += s * 100 + ms;
        ++cnt;
    }
    cout << "总共收集到的结果为" << cnt << endl;
    cout << "总共花费：" << totalTime <<  " （10ms）\n";
    return 0;
}